package com.azdebugit.spring.auto.enable;

import com.azdebugit.autona.test.jso.other1.User;
import com.azdebugit.spring.auto.enable.test1.FormatTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @Autowired
    private FormatTemplate formatTemplate;

    @GetMapping(value = "test")
    public String test() {
        User user = new User();
        user.setName("crossyf---");
        user.setAddress("111111111");
        return formatTemplate.doFormat(user);
    }
}